﻿namespace Zws.AutoMapper
{
    [AttributeUsage(AttributeTargets.Class)]
    public class CreateMapperAttribute : Attribute
    {
        public Type MapType;
        /// <summary>
        /// 跟指定的类型反向映射，跟model的类解耦？
        /// </summary>
        public bool IsReverseMap { get; set; } = false;
        public CreateMapperAttribute(Type mapType)
        {
            MapType = mapType;
        }
    }
}
